#
# This file is part of the kernelstudio package.
#
# (c) 2014-2025 zlin <admin@kernelstudio.com>
#
# For the full copyright and license information, please view the LICENSE file
# that was distributed with this source code.

from ksai.models.dify_upload_files import DifyUploadFile


class DifyUploadFileService:

    @staticmethod
    def find_one_by_uuid(file_uuid: str) -> DifyUploadFile:
        q = DifyUploadFile.query.filter(DifyUploadFile.id == file_uuid)
        return q.first()
